<template>
    <panel title="理财精选" class="panel">
        <section class="content">
            <div class="item">
                <img src="https://img12.360buyimg.com/jrpmobile/jfs/t1/7491/15/4277/926/5bda5cb9E421a0e60/89ee14ce9daf4aab.png?width=60&height=60" alt="">
                <div>
                    <h4>月度理财</h4>
                    <p>预期年化收益4.50%</p>
                </div>
                <em>去赚钱 ></em>
            </div>
            <div class="item">
                <img src="https://img12.360buyimg.com/jrpmobile/jfs/t1/7491/15/4277/926/5bda5cb9E421a0e60/89ee14ce9daf4aab.png?width=60&height=60" alt="">
                <div>
                    <h4>月度理财</h4>
                    <p>预期年化收益4.50%</p>
                </div>
                <em>去赚钱 ></em>
            </div>
            <div class="item">
                <img src="https://img12.360buyimg.com/jrpmobile/jfs/t1/7491/15/4277/926/5bda5cb9E421a0e60/89ee14ce9daf4aab.png?width=60&height=60" alt="">
                <div>
                    <h4>月度理财</h4>
                    <p>预期年化收益4.50%</p>
                </div>
                <em>去赚钱 ></em>
            </div>
        </section>
    </panel>
</template>

<script>
import Panel from "@/components/panel"
export default {
    name: 'Finance',
    components: {
        Panel
    }
}
</script>

<style lang="scss" scoped>
    @import '~assets/scss/element.scss';
    .panel{
        @include panel;
        /deep/ h4.one{
            border-bottom: 1px solid #ddd;
        }
        .content{
            @include flex;
            .item{
                @include flex(row);
                align-items: center; // flex 垂直居中
                line-height: 1.4rem;
                &::after{
                    content: "";
                    box-sizing: border-box;
                    width: 100%;
                    height: 0;
                    border-bottom: 1px solid #ddd;
                    margin-left: 1.4rem;
                    
                }
                &:last-child::after{ // 去掉最后item 边框线
                    border-color: #fff;
                }
                >img{
                    width: .88rem;
                    height: .88rem;
                    display: inline-block;
                    margin: 0 .32rem;
                }
                >div{
                    font-size: .32rem;
                    color: #333;
                    line-height: 1.8;
                    width: 4.5rem;
                    p{
                        color: #ff3232;
                        font-size: .24rem;
                        line-height: 1.1;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }
                }
                >em{
                    color: #ff801a;
                    font-size: .28rem;
                }
            }
        }
    }
</style>
